from os.path import abspath, dirname, isfile
import importlib

import os


class Module:
    pass

    @staticmethod
    def create_module(name=None, **params):
        m = importlib.import_module("may.module." + name)
        module_cls_name = getattr(m, "module_cls")
        cls = getattr(m, module_cls_name)
        return cls(**params)
